<?php

class Application_Form_ClassAdd extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
        $this->setName('form_biz');
        
        $Name =  new Zend_Form_Element_Text('Name');
        $Name->setLabel('Наименование класса')
                ->setRequired(true)
                ->addValidator('NotEmpty')
                ->addFilter('StringTrim')
                ->addFilter('StripTags');
        
        $Time = new Zend_Form_Element_Textarea('time');
        $Time->setLabel('Время работы')
                ->setRequired(true)
                ->addValidator('NotEmpty')
                ->addFilter('StringTrim')
                ->addFilter('StripTags');
        
        $Cost = new Zend_Form_Element_text('cost');
        $Cost->setLabel('Стоимость')
                ->setRequired(true)
                ->addValidator('NotEmpty')
                ->addFilter('StringTrim')
                ->addFilter('StripTags');
        
        $Age = new Zend_Form_Element_Text('age');
        $Age->setLabel('Возраст')
                ->setRequired(true)
                ->addValidator('NotEmpty')
                ->addFilter('StringTrim')
                ->addFilter('StripTags');
        
        $Submit = new Zend_Form_Element_Submit('submit');
        $Submit->setLabel('Отправить заявку');
        
        $this->addElements(array($Name,$Time,$Cost,$Age,$Submit));
        
    }
}
